package com.hliushi.movie.entity.enums;

/**
 * 电影类型枚举
 *
 * @author llhuang10
 * @date 2021/10/13 17:47
 */
public enum MovieTypeEnum {
    Comedy(11, "喜剧"),
    Love(21, "爱情"),
    Action(31, "动作"),
    Horror(41, "恐怖"),
    Cartoon(51, "动画"),
    Else(6, "其它");

    private Integer val;
    private String category;

    MovieTypeEnum(Integer val, String category) {
        this.val = val;
        this.category = category;
    }

    public Integer value() {
        return this.val;
    }


    public String category() {
        return this.category;
    }
}
